<?php

use think\facade\Route;

//默认首页
Route::rule("", "v1.index.index/index");
//微信H5
Route::group(config('hiduoke.wechat_app'), function () {
    Route::rule('notify/:plaid/:addon', 'v1.wechat.notify/index')->name('notify');
    Route::rule("", "v1.wechat.index/index");
    Route::rule(':controller/:action', 'v1.wechat.:controller/:action');
    Route::rule(':controller', 'v1.wechat.:controller/index');
});

//企业微信
Route::group(config('hiduoke.work_wechat_app'), function () {
//    Route::rule('notify/:plaid/:addon', 'v1.wechat.notify/index')->name('notify');
//    Route::rule("", "v1.wechat.index/index");
    Route::rule(':controller/:action', 'v1.work_wechat.:controller/:action');
    Route::rule(':controller', 'v1.work_wechat.:controller/index');
});

//抖音
Route::group(config('hiduoke.douyin_app'), function () {
    Route::rule(':controller/:action', 'v1.douyin.:controller/:action');
    Route::rule(':controller', 'v1.douyin.:controller/index');
});
